package cn.com.joyplus.wechat.listener;

import cn.com.joyplus.wechat.exceptions.WechatEventListenerException;
import cn.com.joyplus.wechat.model.WechatEvent;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component;


/**
 * Created by 王灏川(wangrs@qq.com) on 2017/8/11 0011.
 *
 * 处理自定义Click类型菜单的Click事件
 *  <xml><ToUserName><![CDATA[gh_e648f6523b78]]></ToUserName>
 *  <FromUserName><![CDATA[ow3JAt9a3gukKTJz3QRx1RZWYjq8]]></FromUserName>
 *  <CreateTime>1502085795</CreateTime>
 *  <MsgType><![CDATA[event]]></MsgType>
 *  <Event><![CDATA[CLICK]]></Event>
 *  <EventKey><![CDATA[V1001_TODAY_MUSIC]]></EventKey>
 *  </xml>
 */
@Component
public class EventClickListener implements IMsgListener {
    private static final Logger logger = LoggerFactory.getLogger(EventClickListener.class);


    @Override
    public String process(WechatEvent event)  throws WechatEventListenerException {
        logger.info(event.toString());
        return null;
    }
}
